﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kangaroo.IDAL;

namespace Kangaroo.DAL.SqlServer
{
    public class DataFactory : IDataFactory
    {
        public void Init(string connectionString)
        {
            SqlHelper.ConnectionString = connectionString;
        }

        public ISignal CreateSignal()
        {
            return new Signal();
        }

        public IAlarm CreateAlarm()
        {
            return new Alarm();
        }

        public IGeneral CreateGeneral()
        {
            return new General();
        }
    }
}
